﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NETMovie.UI.WebMVC.Models.CastMemberModel>" %>

<%:  Html.LabelFor(m => m.Name)  %>  
<%:  Html.TextBoxFor(m => m.Name)  %>   
<%:  Html.HiddenFor(m => m.MovieId)  %>   
<%:  Html.HiddenFor(m => m.CastMemberId)  %>

<%:  Html.DropDownListFor(m => m.Role, (IEnumerable<SelectListItem>)Session["RoleList"]) %>   

<% if(Model.CastMemberId != 0) { %>
<%:  Html.ActionLink("Delete", "DeleteMovieCastMember", new { id = Model.CastMemberId, movieId =Model.MovieId })%>

<% } %>